<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>The small3d library: Logger.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_s.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">The small3d library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_1bbf6a76ff8eaf46cd48acba40dce3d2.html">small3d</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">Logger.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Logger used in <a class="el" href="namespacesmall3d.html">small3d</a>.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;ostream&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
</div>
<p><a href="_logger_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_logger.html">small3d::Logger</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used for logging through macros (LOGERROR, LOGDEBUG, LOGINFO)  <a href="classsmall3d_1_1_logger.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacesmall3d"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacesmall3d.html">small3d</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ae36ea0d604ebf9911ea191aa704a354a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logger_8hpp.html#ae36ea0d604ebf9911ea191aa704a354a">LOGERROR</a>(MESSAGE)&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggererror, MESSAGE)</td></tr>
<tr class="separator:ae36ea0d604ebf9911ea191aa704a354a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98d4e4ceb51e0eb8db5abdd2a298fcb2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logger_8hpp.html#a98d4e4ceb51e0eb8db5abdd2a298fcb2">LOGINFO</a>(MESSAGE)&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggerinfo, MESSAGE)</td></tr>
<tr class="separator:a98d4e4ceb51e0eb8db5abdd2a298fcb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c1596ba4d50786c25ac66a830c90a93"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logger_8hpp.html#a0c1596ba4d50786c25ac66a830c90a93">LOGDEBUG</a>(MESSAGE)&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggerdebug, MESSAGE)</td></tr>
<tr class="separator:a0c1596ba4d50786c25ac66a830c90a93"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a3806e98488fab560ee2f4b5972297597"><td class="memItemLeft" align="right" valign="top"><a id="a3806e98488fab560ee2f4b5972297597"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacesmall3d.html#a3806e98488fab560ee2f4b5972297597">small3d::LogLevel</a> { <b>loggerinfo</b>, 
<b>loggerdebug</b>, 
<b>loggererror</b>
 }</td></tr>
<tr class="memdesc:a3806e98488fab560ee2f4b5972297597"><td class="mdescLeft">&#160;</td><td class="mdescRight">Possible logging levels. <br /></td></tr>
<tr class="separator:a3806e98488fab560ee2f4b5972297597"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7ffafe7a0562ca3c76da6bfb30a62e1b"><td class="memItemLeft" align="right" valign="top"><a id="a7ffafe7a0562ca3c76da6bfb30a62e1b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacesmall3d.html#a7ffafe7a0562ca3c76da6bfb30a62e1b">small3d::initLogger</a> ()</td></tr>
<tr class="memdesc:a7ffafe7a0562ca3c76da6bfb30a62e1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise the logger. <br /></td></tr>
<tr class="separator:a7ffafe7a0562ca3c76da6bfb30a62e1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9c95af461170e41d031a112466c014c"><td class="memItemLeft" align="right" valign="top"><a id="ab9c95af461170e41d031a112466c014c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacesmall3d.html#ab9c95af461170e41d031a112466c014c">small3d::deleteLogger</a> ()</td></tr>
<tr class="memdesc:ab9c95af461170e41d031a112466c014c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy the logger. <br /></td></tr>
<tr class="separator:ab9c95af461170e41d031a112466c014c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1c25b235eec67110b8a55e850bbec26e"><td class="memItemLeft" align="right" valign="top"><a id="a1c25b235eec67110b8a55e850bbec26e"></a>
std::shared_ptr&lt; <a class="el" href="classsmall3d_1_1_logger.html">small3d::Logger</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a></td></tr>
<tr class="memdesc:a1c25b235eec67110b8a55e850bbec26e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The logger object used by the logging macros. <br /></td></tr>
<tr class="separator:a1c25b235eec67110b8a55e850bbec26e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Logger used in <a class="el" href="namespacesmall3d.html">small3d</a>. </p>
<p>Created on: 2014/10/18 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file) </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a0c1596ba4d50786c25ac66a830c90a93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c1596ba4d50786c25ac66a830c90a93">&#9670;&nbsp;</a></span>LOGDEBUG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGDEBUG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">MESSAGE</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggerdebug, MESSAGE)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log debug information (only shows up when debugging) </p>

</div>
</div>
<a id="ae36ea0d604ebf9911ea191aa704a354a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae36ea0d604ebf9911ea191aa704a354a">&#9670;&nbsp;</a></span>LOGERROR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">MESSAGE</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggererror, MESSAGE)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log an error </p>

</div>
</div>
<a id="a98d4e4ceb51e0eb8db5abdd2a298fcb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98d4e4ceb51e0eb8db5abdd2a298fcb2">&#9670;&nbsp;</a></span>LOGINFO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGINFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">MESSAGE</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="_logger_8hpp.html#a1c25b235eec67110b8a55e850bbec26e">logger</a>-&gt;append(small3d::LogLevel::loggerinfo, MESSAGE)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log information (shows up even when not debugging) </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
